package priv.pfz.qatool.annotation;

import priv.pfz.qatool.enums.QAToolMethodAuth;
import priv.pfz.qatool.enums.QAToolMethodType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by fangzhou.peng on 2017/8/10.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface QAToolMethod {

    QAToolMethodType type() default QAToolMethodType.HTML;

    String name() default "";

    String[] descs() default {};

    QAToolMethodAuth auth() default QAToolMethodAuth.DEV;

    /**
     * api为true时不显示在qa_tool.html上
     */
    boolean api() default false;

}
